#ifndef __STAT_PANEL
#define __STAT_PANEL

#include "GuiNode.h"
#include "TextLabel.h"


class StatPanel : public FEngine::GUINode
{

	public:

		StatPanel();
		~StatPanel();

	private:

		FEngine::TextLabel* mTime_Label;
		FEngine::TextLabel* mFPS_Label;
		FEngine::TextLabel* mFrame_Label;
		
		virtual void update(double _elapsedTime);
		virtual void render(double _elapsedTime);
		
		double mTimeSinceStart;
		double mTimeSinceLastUpdate;

		double mAverageRecordTime;			// Time span used to average the fps and frame values
		double mActualRecordedTime;
		int mNumberRenderLoop;
		int mLastAverageFPS;
		double mLastAverageFrame;
};

#endif
